<template>
  <view>
    <u-cell-group>
      <u-cell-item
        v-for="item in experienceAll"
        :key="item.type"
        :title="item.name"
        @click="cellClick(item.name, item.type)"
      >
      </u-cell-item>
    </u-cell-group>
  </view>
</template>
<script lang="ts" setup>


const experienceAll = [
  { name: '登录密码', type: 1 },
  { name: '签名密码', type: 2 },
];

const cellClick = (title: string, type: number) => {
  (uni as any).$Router.push({
    name: 'safetyEdit',
    params: {
      title: '修改' + title,
      type,
    },
  });
};
</script>
